package com.seckill.controller;

import com.seckill.service.ReceiverFanoutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: 胡成
 * @Version: 0.0.1V
 * @Date: 2018/12/7
 * @Description: 类描述
 **/
@Controller
public class ReceiverFanoutController {

    @Autowired
    private ReceiverFanoutService receiverFanoutService;

    @GetMapping("sendFanout")
    @ResponseBody
    public Object sendFanout(){
        receiverFanoutService.sendFanout();
        return "ok";
    }
}
